package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "图片表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_image")
public class Image extends BaseEntity {
    /**
     * 图片名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "图片名称")
    private String name;

    /**
     * 原始图URL地址
     */
    @TableField(value = "url")
    @ApiModelProperty(value = "原始图URL地址")
    private String url;

    /**
     * 大图URL地址
     */
    @TableField(value = "l_url")
    @ApiModelProperty(value = "大图URL地址")
    private String lUrl;

    /**
     * 中图URL地址
     */
    @TableField(value = "m_url")
    @ApiModelProperty(value = "中图URL地址")
    private String mUrl;

    /**
     * 小图URL地址
     */
    @TableField(value = "s_url")
    @ApiModelProperty(value = "小图URL地址")
    private String sUrl;

    /**
     * 迷你图URL地址
     */
    @TableField(value = "xs_url")
    @ApiModelProperty(value = "迷你图URL地址")
    private String xsUrl;

    /**
     * 宽度
     */
    @TableField(value = "width")
    @ApiModelProperty(value = "宽度")
    private Double width;

    /**
     * 高度
     */
    @TableField(value = "height")
    @ApiModelProperty(value = "高度")
    private Double height;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_URL = "url";

    public static final String COL_L_URL = "l_url";

    public static final String COL_M_URL = "m_url";

    public static final String COL_S_URL = "s_url";

    public static final String COL_XS_URL = "xs_url";

    public static final String COL_WIDTH = "width";

    public static final String COL_HEIGHT = "height";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}